finish compose function in AdvancedPolynoialFunction Class