     
     static func getExams(endpointProvider: TPEndpointProvider,
                          completion: @escaping (TPApiResponse<Exam>?, TPError?) -> Void) {
-        apiCall(endpointProvider: endpointProvider, completion: {
-            json, error in
-            var testpressAuthToken: TPApiResponse<Exam>? = nil
-            if let json = json {
-                testpressAuthToken = TPModelMapper<TPApiResponse<Exam>>().mapFromJSON(json: json)
-                print(testpressAuthToken?.results ?? "Error")
-                guard testpressAuthToken != nil else {
-                    completion(nil, TPError(message: json, kind: .unexpected))
-                    return
-                }
-            }
-            completion(testpressAuthToken, error)
+        
+        apiCall(endpointProvider: endpointProvider, completion: {
+            json, error in
+            var testpressResponse: TPApiResponse<Exam>? = nil
+            if let json = json {
+                testpressResponse = TPModelMapper<TPApiResponse<Exam>>().mapFromJSON(json: json)
+                debugPrint(testpressResponse?.results ?? "Error")
+                guard testpressResponse != nil else {
+                    completion(nil, TPError(message: json, kind: .unexpected))
+                    return
+                }
+            }
+            completion(testpressResponse, error)
         })
     }
     

            json, error in
            var attemptItem: AttemptItem? = nil
            if let json = json {
                attemptItem = TPModelMapper<AttemptItem>()
                    .mapFromJSON(json: json)
                debugPrint(attemptItem?.url ?? "Error")
                guard attemptItem != nil else {
                    completion(nil, TPError(message: json, kind: .unexpected))

    }
    
    static func getQuestions(endpointProvider: TPEndpointProvider,
                             completion: @escaping(TPApiResponse<AttemptItem>?, TPError?) -> Void) {
        
        apiCall(endpointProvider: endpointProvider, completion: {
            json, error in
            var testpressResponse: TPApiResponse<AttemptItem>? = nil
            if let json = json {
                testpressResponse =
                    TPModelMapper<TPApiResponse<AttemptItem>>().mapFromJSON(json: json)
                debugPrint(testpressResponse?.results.count ?? "Error")
                guard testpressResponse != nil else {
                    completion(nil, TPError(message: json, kind: .unexpected))
                    return
