Q3 revised

Updated number 2 and 3. Previous version in number 2 added the same
error to every x%*%beta, this adds a random error to each element.
Switched number 3 to use laply instead of lapply so output is a matrix.