example code for Lab 0