Many mammals and birds raise alarms to warn others of danger. Others cooperate in tasks, such as scrub jays help each other with to build nests. In all these cases where animals cooperate, the question is whether there is any biological benefit to themselves. It is now clear that there is benefit if the animals are closely related. This is because related organisms have (to a degree) a shared genetic inheritance.