code discussed on the salty-drip wordpress blog