Added MessageCode and MessageHandler classes