Implemented a working Time class.