create_StateVals function

Create a StateVals object