Remember you do not need to use chomp when you turn into an integer as to_i removes the new line character;