part2 cpp