First part of stats. It's broken and unfinished...