Converting packets to frames on data link layer, and moved Packets and Frames to their own classes