An interactive model of neural firing