Provided example for question 18641917 on stack overflow