Step 6.2 – Adding logic to index.js