Add constructor to rule