simplifying and working with Time class