add rules sample