week6 ... programming assignment completed.