Solution for step 3.