organizing code and designing the lifebar