The real intelligence is distributed across the worker bees, who are all female and move through a series of roles as they age. Newly hatched workers begin as nurses, tending larvae and feeding the queen. They then progress to wax production and comb building, then to receiving and processing nectar, then to guarding the entrance, and finally to foraging outside the hive.