added xbugsamplecode