Refactor name expression, factorial1 sample