added setter and getter in c_graphic class