Add example2 function.