learning puppet, example code