Implemented a messenger class that can read and write in network format.