Code from CS8 at UCSB with Professor Conrad