Not working array extension for Stackoverflow