decommented first example not using factorial