added basic clock functionality