Two classes that I wrote in order to practice coordinating between threads