adding step 6 solution