array implementation
test