A flywheel is a mechanical device which uses the conservation of angular momentum to store rotational energy; a form of kinetic energy proportional to the product of its moment of inertia and the square of its rotational speed. In particular, assuming the flywheel's moment of inertia is constant then the stored (rotational) energy is directly associated with the square of its rotational speed.
Trevithick's 1802 steam locomotive, which used a flywheel to evenly distribute the power of its single cylinder