added example by Caitlin Morris; good for-loop example