Added code for step 3.