[stack] Complete program