building a digital clock step-by-step (1)