Added attribute capability to thrift example