Use a using statement for disposing the MemoryStream
Add ParsedMessage class