Worked with factors-of logic