API:Patrol/Sample code 1