Code from MAT 594G (Fall 2012)