[quickstart] add code used in MS video