A Bohr-type model with gravity as the attractive force