fixed prob ch6, prob10