refactored to do list in ruby (Epicodus)