How Were Comets Formed