How was basketball start?

they had a ball and then shot the ball in the basket and they called it basketball