Index test working
Implement Rule type