Contract for Training and Learning Sample Contracts