use new syntax for array (in sample codes in readme)