A piece of a Threaded project I am doing for another class (withheld some of the code for now since there are students who share both classes)