MainWindow now uses ChartProvider. Renamed it so it won't be confused with another class.