This article discusses the simple initial value problem of an energy extraction device made up of a cylinder and an electric generator. It explores the motion equation, numerical method, and provides a MATLAB program for solving the problem. The article also discusses the effects of varying parameters such as damping coefficient and displacement on the extraction of power.