Added a new example, fixed a bug in manual iterator