Added sample codes for right value reference