initial code

take a look on index.js