Added scenarios and rules and supporting code to run them.

Added scenarios for buying and selling stocks, rules for both scenarios, and supporting code to run rules and pass scenarios. Adds missing sections and files from previous version.