len, sublist, fib  functions