a really simple graphical editor simulation in ruby