replace moodle plugin code with adapted example (https://github.com/moodlehq/moodle-mod_newmodule/tree/master)