Add getLength and getHeight methods for testing