Massive stars built in stellar nurseries