added the add, remove, and contains methods for the Cargo.java for addition, removal, and querying of resources.