finish week4 programming assigment part2