added Public MessageEventHandler class