simple example of a digital clock