Provide an array to csv method. Added Object as an constructor.