Learning to make candy from a recipe