Simple Generator example