finished lab4 part2