Uses shared examples to factorise code a bit