Add demo code

as discussed in https://github.com/tqchen/xgboost/issues/121 or https://github.com/tqchen/xgboost/issues/123