added example that includes ability to save with cookies