refactored inventory to use factory

Note: clear local storage, i updated inventory fixture