loop examples that updates correctly.