Step 5 for CSE 476