Weeks 6 and 7 programming assignment