Added the solution of assignment 8.