My solutions to ruby quiz