added Clock for scheduling things