. . "I wrote something that works as @rpetrich was explaining without placing in a array and in my opinion is the easiest solution to this." . .