changed to object oriented instead of function oriented
adding graphs