created basic State class