Solution of learnyounode , one of a core workshop from nodeschool.io for learning nodejs