Altered the second function, created the third function, and ran rudementary tests.