seperated fir functions in a class