First approach for custom rate directive