added multidimensional arrays, transform answer to upper