Updated part1 script