Added rules and code to generate outputs for making a plot