move id to Base Rule class