Adding the Source class (it will be a module when tests will be done)
with some stats gathering helpers