How Does Factoring Work?