Fraction(int numerator, int denominator){
        if(denominator == 0){
            throw new IllegalArgumentException("denominator must be non-zero");
        }
        this.numerator = numerator;
        this.denominator = denominator;
        reduction();
    }