Sample code for lessons 1-3