[17] AFactory class is implemented