Added class to communicate with API