Modified QueueClass.java