move function classes into function package