Added 'typ' function to 'fibonacci' function