Here's what you need to do to create a part-whole relationship.
ocean in the LivingOrganism class.)
connectToOcean: anOcean ocean := anOcean
ocean moveMe: self x: 4 y: 7
occupants in the Ocean class.)
initialize method for the instances of the whole class, assign the instance variable to a new collection.
initialize occupants := OrderedCollection new.
add: and remove:ifAbsent:
addToOcean: aLife occupants add: aLife. removeFromOcean: aLife occupants remove: aLife ifAbsent: [].
occupants do: [:each | each goHome]