trying to us it as a class