Thrift class