Step 5 of hw3
hw3 step 8