working example, simpler moodle/index