public Integer next() {
        if (n == 0) {
            n += 1;
            return 0;
        }
        if (n == 1) {
            n += 1;
            return 1;
        }
        result = first + second;
        first = second;
        second = result;
        return result;
    }