thrift study code.