A Method for Learning From Hints