Initial test of setup and running. Code is modified from a tutorial