completed array_assignment