evaluate function in another class