The effect of a massive object on an expanding universe