Sine function;  working on sine wave output