Essays on Contracts