Statistics solution