A dynamic model of advertising by the regulated firm