Code for my compsci class