Added delegating data access
Fixed the bugs in the delegating data access
Added a sapmle