rule first approach example