Finished Exercise 2 for Concurrency