Added a method for graphics