Code for my AMS 132 class at UCSC