Create construcor for state