function createSimpleRoom($longname, $lecture, $courseId)
 {
     // room
     $id = $courseId . rand();
     $room = new LCRoom();
     $room->setArguments($id, null, $longname, null, "0", "0");
     $this->api->lcapi_create_class($id, $longname, $room->getAttributes());
     if ($lecture == "true") {
         // instructor lead the presentation
         $this->api->lcapi_add_user_role($id, $this->getStudentUserid(), "Student");
         $this->api->lcapi_add_user_role($id, $this->getTeacherUserid(), "ClassAdmin");
     } else {
         $this->api->lcapi_add_user_role($id, $this->getStudentUserid(), "Instructor");
         $this->api->lcapi_add_user_role($id, $this->getTeacherUserid(), "ClassAdmin");
     }
     return $id;
 }