Added part1 of problem43