ex1: clock basic