Convert Wave method into WaveEffect class