basic use of block in iOS