add first version of statistics engine