how to use array length propery