diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -5,13 +5,15 @@
 import bisect
 import itertools
 import functools
+
+
 class Solution:
     def numberOfArithmeticSlices(self, nums: List[int]) -> int:
         total, n = 0, len(nums)
-        dp = [defaultdict(int) for _ in nums
+        dp = [defaultdict(int) for _ in nums]
         for i in range(1, n):
-            for ''j in range(i):'' 
+            for j in range(i):
                 diff = nums[j] - nums[i]
                 dp[i][diff] += dp[j][diff] + 1
-                total += self.undifned_method(dp[j][diff])
+                total += dp[j][diff]
         return total
