Add few restrictions to the classes.