I think you should do some design wor with
UML to clarify what you want to code. Here is a
tutorial. An easy solution is also to draw it at paper - best with a pencil.
Dont knowing the type of the variables is bad style.
You can do such stuff by adding a dictionary which has a key (your var) and a value (the value).
A common design pattern is interface. You define some compatible functions but not the class.
An advice from a seasoned developer: if you dont know WHAT to implement your work is for the trashcan. ;-)