add thrift example