class to instance