External state

Live Editor
Result