ui package and LifeBar class created