Exercise on factors, I added the user input

Obviosly, I didn't bother checking for the proper input.