programming assignment 3 updated.