First working version with square ripples.