Create class to perform operations on arrays