week 1 programming assignment parts 1 & 2 of 3.