working on sample-main.js