playing with arrays and foreach loops