Class that reverses an array