Code for Purdue CS 434