added a class to generate graphs