A little math - sinusoidal solution