adding constructor to set API Client