Adds new methods to the Cart class.