Graphic Programming with Inheritance