add mapping protocol to objects

HI! it's me again. I added mapping for key paths functionality.