Adding self-referencing capability in objects