example: listing enrolled courses
replace function calls with moodle query object. Methods to return user and enrolled courses