added code for step 1 in app.js