test class for question 3