Replace while with .each