add the metadat demo code