Pattern and Repertoire in History