A mathematical theory of central nervous activity