Add demo codes for decorator