SMS: Learning by example