The introduced HAM-model (Hierarchical Associative Memory) consists of an arbitrary number of associative memories grouped hierarchically in several layers.