implements TeamStats + tests