Lab 3 solution part 1