added mySort function to exercise 2, still need to work on printing it out