#30 add newState parameter to removeState method