Code from my principles of programming languages class