A demo program for learn thrift