Exercise solution: Keeping state

Sign up for access to the full page, plus the complete archive and all the latest content.