Use a magic method to keep instances linked to the Container