add method returning array of objects in list; separated pop and removeObject into own methods