Use init function
Solved problem 24
Solved problem 25 and factor out fibonacci sequence.