using ship array