Create control program by demonstrating behaviours using widget and inferencing them