refactor fibonacci, generate number list, get list index value