API:Protect/Sample code 1