Task2: Add braces check