simple iOS sine wave class