adding array method 'each'