controller for lessons/exercises