Attempted to implement HashCode and Equals for classes. Not complete.