implemented Condition2.sleep() and Condition2.wait()