part2 for lab4