updated examples and class modifications