Add solution for assignment 1 exercise 2 and incomplete solution for exercise 3.