Early stages of accumulation in the solar nebula