Its the exercice we did with Gabriel. Computes CT and statistics