Update WavePattern.java

Completed first working revision