Adding Monitor to concurrency library