update Lecture class definition.
bug fix on grouping.