tutorial on clocks