Overwrite the annon func and now has a class to instance