This contains the fourth assignment part 2.