Implement inventory; also correct a mistake in create()