refactored to use cents as a measure of money in the inventory class, hopefully avoiding nasty float issues