Add get length function to the design