added factorial method
Tested another variable for factorial