Initial implementation of Listen method
Added serialization to Message class