solutions for week 4 ls2 homework 4115391