Added Block Syntax

i added block syntax and updated the demo to reflect this changes.