When posting errors, post the FULL errors.
When posting code, if it is short, post it in [CODE][/CODE] tags, but if it is long code, post it as an attachment.
The error says that ClassMenu is not defined. So, if it is in the code and it can't see it being created then you need to look above that line of code to find out why it's not being seen correctly. In this case it is because you never close the plugin_init() function.