Implemented Time class.