Added equals, hashCode, and toString to classes to help with unit testing.