Which of the following is the most effective way to prevent the spread of infectious diseases like the flu?