corrected and extended example