completed Lab5.6 option 2 assignment