Rule Categories Implemented

Added implementation of rule categories.