A demo to show how to use thrift