my solutions to the learnyounode terminal application