added new class function