Recreated Time as a class. Added equals

Added equals method for time, fixed control with new
method syntax, fixed time for new method syntax and added == method