Optimal employment contracts in a principal-agent relationship