now passing type class to MyArray