Implemented Condition2.java