what does the gets.chop do?
It's not gets.chop, it's gets.chomp.
"gets" lets the user input a line and returns it as a value
to your program. This value includes the trailing line break. If you
then call "chomp" on that value, this line break is cut off.
i think i get it now