Learning by example