As above I have an object of class Animal and I want to add it to LinkedHashMap animals which is a property of RectangularMap. The problem is that when I create two objects