fact function

Factor