Updated samples to show use of const.