add rules class