diff --git a/FlashCard.py b/FlashCard.py
index 527497c8e465be3dd3254b9ec3ff0ee20fde6d53..815c6147a7ffcbe33317a44cb0b4728aa15f3366 100644
--- a/FlashCard.py
+++ b/FlashCard.py
@@ -7,7 +7,10 @@ class FlashCard:
     flashCardQuestion: str
     flashCardAnswer: str
 
+    def __init__(self, flashCardName, flashCardQuestion, flashCardAnswer):
+        self.flashCardName = flashCardName
+        self.flashCardQuestion = flashCardQuestion
+        self.flashCardAnswer = flashCardAnswer
 
-firstCard = FlashCard("First Card", "This is the question", "This is the answer")
-
-firstCard_dict = asdict(firstCard)
+    def to_dict(self):
+        return asdict(self)