Implementing a hierarchy of neurons