I think this just might work to implement STDP.