made state enum separate class