made helper class for comparing times