liner solution to question 2