Creating a Chart class.