Learning Transformation Rules by Examples