The slow but gradual reduction of forelegs turned to flippers. The hind limbs were lost with some vestigial bones and they were replaced and repositioned with the blowhole which is located on the top of the skull. From the forward facing nose, you can see the changes in this series:
Sinonyx
Pakicetus
Ambulocetus
Rodhocetus
Basilosaurus
Dorudon