added n-grams code using zip and iter