Made filter class. Turned restrictions into enums