wrote the code for simpleVar's GetStat pattern.