Rename cubes_sum to cubes_sum(function_pointer)