Created Object Function for storing in Queue