Updated examples to use a `for` loop