Created classes to generate graphs