added loop example