added Timer code so cp.cpp will work