a three function package