Issue #10: add return length