Added inventory model and more sorting methods