made the console array contain objects instead of strings.