Assignment 2: Problem 2 D Solved.