Adding second sinusoidal function to create waves