add loop example, required a bit of munging.