working example with multiple blocks