week10 assignment for prog272