Spring energy and motion