Working for the input array at the bottom of index.js