Joe's version of solution for assignment 2