add the os-stat demo code