Added lab 7 sample code