Improve stats example