updated borrowed pointer example