Activity 5

Refactored code for random responses.