Programming assignment 4 completed