Rewrote gitStatistics to use nodes class pattern