part2- code