fixed #1: created Edge class for painting edges