First attempt at programming assignment

Used example code and substituted solve function for mean function to
get the mean.