Copying code is bad. Used wrong equals tester.
Updated to pass equals test
Equals test
Added equals and hasCode methods