Added some functions, trying to wrap my mind around compareTo