Sketching out factor function