A factory simulation