tidying up simple example