added logic in playground.js