Design of contract