The role of the media in shaping public opinion