Example code for Lab 1