Added solution code for Graphical Editor