make rules class