added "Save Script State" sample