factoring shape