updated programming activity #3