Essays in law and economics