Solving the assignment

Solving the assignment