Create Rule_logic