Refactored constraints.java to have capital and fixed bad importing round 2