This computer works fine and comes with the charging cord.  It has some dents and dings (shown on the images), which is why it's priced the way it is.  It's upgraded to the latest operating system (Monterey) and runs fine off the power cord.  The battery doesn't hold a charge for long so you could buy a new one or simply run it off the plug-in power.