A Generalized Model of the Brain