File name changed, factorial logic separated, if-else removed