Implemented equals method, all tests pass