Model of the thalamo-cortical system