Ex8.1

Write a method to generate the nth Fibonacci number.