My solution for tutorial learnyounode