This program simulates a clock and an alarm