Add main class with array.