Create AdvancedState.java