Message class, builder for it and JSON serialization