Refactored cookbook examples, added example for Comp 124.