added addState function, states are stored in a object variable,  if a state gets overwritten the user gehts an info in cosole
its not a function, just an object
added example - not tested jet