Partial implemented the method to get inventory