putting the FUN in function generator