First draft

you should start from a empty object instead of deleting keys