added rough implementation of nd-array assignment