The topic of this paragraph is the advantages of birds roosting in communities or flocks. Some key details are that birds in flocks stay warmer, save energy, are more likely to find food and detect danger, and can more easily escape attack if alerted. The implied main idea is that roosting or eating in flocks provides birds safety and survival benefits.