programming assignment 3 finished.