Replace example by a sinusoid generator