implement size() and iterator - iterator
fflush stdout