Wrote code in index.js