This is code from a simple assignment for one of my classes.