Code that reads a packet of data and extracts information from bytes