created a class that represents  a packet. it stores only the information i need from the packets