code added till step 7