Refactored constraints.java to have capital and fixed bad importing