Implemented new inventory creation function