Update project2014-P006

added a loop example, copied in complete script