public int compareTo(Time other)
    {
       if (equals(other))
          return 0;
       else {
          if (hours < other.hours || (hours == other.hours && minutes < other.minutes))
             return -1;
          else return 1;    
       }   
    }