added code for moodlamp