implemented add_policy method