Loop from 0 to 5 with Ruby code instructions