Submission 1

Updated the functions so that they return inverse instead of mean