programming assignment 6