week 8, problem set 6