Demonstrations can be recorded by guiding the robot or through teleoperation. It is simpler than writing rules but needs many good demonstrations.