Wrote recv and send functions and created Message object with message parsing code.