Implementation of the problem 5 done. So far need to work the explanatin
on the discussion