added a clock to show time and basic controller structure