added array forEach method