Added class for handling api requests