added stat-graphics demo code