wrote fibonacci methods