the rig of a sailing ship with sails and ropes