TimeKeeper for recording running times, changed codes to use this class, problem 4