homework 4 made inventory more efficient