API:Blocks/Sample code 1