close array in example code