sample tutorial code for nodejs