Added combined function class which includes rational