Version 3 example added. Original author spelling error in code corrected