ex5.10 - fibonacci number generator