Higher Order functions class