Added the solution for level 6