Make SChart a class.