Code for CS 240 at BYU