When was baseball invented and by who?

alexander joy cartwright invented baseball in 1845