Adds viewport to the final example. Fixes #349