Completed get median program