finished basic clock