States and StateStack prototype