sample code created while learning node.js