finished total stats. should do more testing if have time
added uml