Modified Queue class to now store any type of objects.