Multiple outputs from multiple inputs?

I’m a bit of a grasshopper amateur. Is it possible to do something like:

have an integer input that create a 1mm line from 0,0 at an angle specified by the input
bake the line
change the input to a different angle and bake that line
click on the first line, and “unbake” it, so that it’s angle is now the value of the integer input, and you can change the angle

in OOP terminology, if the graph is a class definition, is there a way to instantiate multiple objects of that class?