added Format function to Stat