modified the clock management class, moved the clock manager to be a
global object