Added part1 code