so my work was to convert this method:
long fib(long n) { long i = -1, a = 0, b = 1; while (++i != n) b = a + (a = b); return a; }
into anoth