more interface update.
added statistics class.
implement statistics.