Added Time and Clock classes
Updated examples to use the new Time and Clock classes