Improved inventory command (IT Lesson)