code done for step 6 but not working