added lab 3 base code