puppet code for learning lessons