What is involved in replacing a 5.2 with a 5.9

Also Chrysler changed the rear main cap to where a 5.9 oil pan fits on the 5.2. So no problem with the oil pan.