takes a range as an argument to create an array of digits.
digits = Array(0..9) # => [1, 2, 3, 4, 5, 6, 7, 8, 9]