ex2.1 - fibonacci function