solutions to some ruby quizzes