use rest params
add toArray method