This program builds the above Bayes net in memory
  and then saves it to file: