Avoid stack overflow in length method. Use iterator in show method