added test program from moodle