Implemented Message class