Xmaxy now using array forEach() method