Added a new class, which helps to synchronize threads