update the class

The new class using function was created