Added pull method to Collection class