add beginnings of function class