Add loop sample for loop eachWithIndex