class exercises from november 5th, homework 9 solutions