how does a trust operate?