build lessons and lesson views