I was posting a block of code in a discussion when I saw
the code is not correctly represented in the Forum.
I put here the code in a CODE block and also in a file.
Comparing the two you will see that e.g. this part is not correct
in CODE block.
(0..4).each do |i|