<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
I have two input arrays x and y of the same shape. I need to run each of their elements with matching indices through a function, then store the result at those indices in a third array z. What is the most pythonic way to accomplish this? Right now I have four four loops - I'm sure there is an easier way.
<ASSISTANT_TASK:>
Python Code:
import numpy as np
x = [[2, 2, 2],
     [2, 2, 2],
     [2, 2, 2]]
y = [[3, 3, 3],
     [3, 3, 3],
     [3, 3, 1]]
x_new = np.array(x)
y_new = np.array(y)
z = x_new + y_new
<END_TASK>