Adding solutions for week 4 homeworks