addObjects() method