Generating Function added