completed assignment5 part1