Concurrency homework