Finished programming assignment 2.