added historygram class