Added `get-depth` function
Cleaned up closing brackets