ball clock example from someone else