get_array program for array tasks