Use cnext for it.next() and define iterator class