Integrate the function into a class