Soln to problem 7.6 of EOPI book.
Added comments
Added comments.