solutions for week 9 ls4 homework 4232887