Add example codes and explanation.