array flexible example