dsp examples from Lynn's book