2d model of lunar eclipse