new class and data example