"fixing errors in the myArray funtion"