tidying up example to work with my rpi