added getInventory method to Service.php