problem with new class