updated documentation with extend for object