Programming assignment 3 completed