fixed typo and enhanced example