Fixed memory issue by switching to c style Message class in tutorial.