Learning by sketching