all the code from my cs2 class