implement simple structure of object and map