finished week 3 programming assignment