Code from examples from Ruby textbooks (Beggining Ruby, Learn to Program)