factory simulation