updated the constructor signature for the ship class to also include the max of the cargo size.