Created a class that will be responsible for generating the graphs.