Create CreditState.cs