use each method of Array