add XYPoint to Rectangle and test
end chapter9