Implement the fibonacci function