added lab2 sample code