Adding Packet.java and refactoring MyQueue.java to use Packet.java