Cut and paste for part1 solution