Three Essays On Intra-Firm Transactions