class not from string but from class