Further improve the example & add it as a separate file.