added code for mean and median
added code for showing NAs
added code for showing NAs