Engineering a Sequence Machine through Spiking Neurons