Improved Clock example