The formation of a black hole