Check that malloc didn't return null
Finish capacity system for inventories