OO design about a Length class