The Perfect Contract