example to use array attribute with Moose