cs176—assignment 4

stuck, can't get it right.