You should add `.map(&:to_i)` which 1/ simplifies the following selection and 2/ secures user input by removing non-numerical values