adding patch for question 4