Adding factorial program