API:Templates/Sample code 1