My solutions for the learnyounode program