Programming assignment 7