fixed namespace on Factory class