using XYPoint class to describe Rectangle’s points.