Added Some constraints to all classes