added notes to factorial