code for lessons