Refactor: moved add method declaration to the object o definition.