A 2D simulation of EM wave propagation using an FDTD method