fixed replace_with_earth by replacing Rory's version with Peter's version and reinstated use of replace_with_earth in notebook