Implementation of quadruples for functions, saving the return values is pending