Updated for latest homework to include compareTo and equals