Using Learning Contracts