Write a program that illustrates the central limit theorem as follows: as arguments the program takes a function f that generates data from some probability distribution. It then generates samples of size 1, size 5, size 10 and size 20 and finds the means for each. This is repeated 1000 times. Finally the histograms of each of the four cases is shown, using ggplot2. Here are some examples of what this should look like:

hw2(runif)

hw2(function(n) rchisq(n, 1))

hw2(function(n) rbinom(n, 3, 0.5))