modified grader per HW3,pt2