An simple loop written in idiomatic Ruby.