class with example