Added the triangular and fib functions in