What invention included an inverted pendulum