final Version for hw3 part1 startup