finished Exercise1 of Assignment1 in Concurrency