Week3 part1

Assignment 5, 9 and 10 of week 3