Solution for week 4 assignment and excersises for weeks 5 and 6