First version of working clock