Learning contract