added removeObject method to header