update requirement
seperate statistics functions to myStatistics and add simple unittest