Added test cases for questions 1c and d