@lgritz I pushed the code with scoped arrays.