Solution to the learnyounode tutorial