Sine wave example