Implementation of a nerual network with a backwards-propagating error signal