who wrote baby you're a rich man