Wrote the first version of ClockThread class.