Bits of code used in learning Factor