initial code of the clock.