programming assignment for week 3