Modify code in Dataset.java and Model.java to handle negation.