Added examples for generators and creating a class that inherits randomly