add a simple iterator for list