Minor detail: lastCourseId + 1