The automatic factory