implement array and object