Programming assignment 4 finished