working factorial and fibonacci examples