first commit for statistics gathering and updating,  method for notifying clock(observer) which updates the stats