finished week 4 programming assignment