Add example one for tutorial. Fix errors on ex2.