Stat server impl sample code