Use the R program to do 4 questions