public static void main(String[] args) {
        
        Point pnt1 = new Point(5,0);
        Point pnt2 = new Point(1,0);
        Point pnt3, pnt4;
        
        System.out.println("The distance between the points is " + pnt1.distanceTo(pnt2));
        System.out.println("The distance of point 1 from the origin is " + pnt1.distanceToOrigin());
        pnt1.moveTo(-10,0);
        pnt2.moveTo(pnt1);
        System.out.println("The distance of point 2 from the origin is " + pnt2.distanceToOrigin());
        System.out.println("The distance between the points is " + pnt1.distanceTo(pnt2));
        pnt3 = pnt1.clone();
        pnt4 = pnt3.opposite();
        System.out.println("The distance of point 4 from the origin is " + pnt4.distanceToOrigin());
        System.out.println("The distance between the points is " + pnt4.distanceTo(pnt3));
        
    }