Guys how to do a rule method?