add solution for ex_arrays