Analysis of learning a basketball shot