factorial using range exercise add