updated programming activity #2