create Chart class