Implement function bracket()
Test bracket()