Implemented step 3