programming assignment 2 finished.