week8 solutions by chenhao