modified two examples, one for fm_demod and the other for noncoherent