change Phase(phase) to Phase_array(phase)
add Phase_array
add Phase_array function which operate on the numpy array