2D wave simulation program using lua