Added example code with Cucumber test. Needs tidying up