Message class implemeted