Implementing the HUD class