add example code to lab 2