Hi Herbert,
The trailing closing bracket }
belongs to the impl Rect2D
block, and not the function definition for quadrants. Maybe better to remove it from the listing to avoid an additional stray bracket being inserted into the code!
Rgds.,
Paul