Learning Contract