Provided example for question 18602332 on stack overflow