separate clock functions to three objects and add commands to control them