In his book "King Solomon's Ring", Konrad Lorenz described and analysed the complex social interactions in a western jackdaw flock that lived around his house in Altenberg, Austria. He ringed them for identification and caged them in the winter to prevent their annual migration. He found that the birds have a linear hierarchical group structure, with higher-ranked individuals dominating lower-ranked birds, and pair-bonded birds sharing the same rank. Young males establish their individual status before pairing with females. Upon pairing, the female assumes the same social position as her partner. Unmated females are the lowest members in the pecking order, and are the last to have access to food and shelter. Lorenz noted one case in which a male, absent during the dominance struggles and pair bondings, returned to the flock, became the dominant male, and chose one of two unpaired females for a mate. This female immediately assumed a dominant position in the social hierarchy and demonstrated this by pecking others. According to Lorenz, the most significant factor in social behaviour was the immediate and intuitive grasp of the new hierarchy by each of the western jackdaws in the flock.