init Rule Generater solution